package com.dep.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * department
 * @author 
 */
public class Department implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 部门编号
     */
    @ApiModelProperty("部门编号")
    private String depNo;

    /**
     * 部门名称
     */
    @ApiModelProperty("部门名称")
    private String depName;

    /**
     * 上一级部门id, 0为最上级部门
     */
    @ApiModelProperty("上一级部门id, 0为最上级部门")
    private Long parentId;

    /**
     * 成立时间
     */
    @ApiModelProperty("成立时间")
    private Date establishAt;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createdAt;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private Date updatedAt;

    /**
     * 0-未删除, 1-删除
     */
    @ApiModelProperty("0-未删除, 1-删除")
    private Byte isDeleted;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDepNo() {
        return depNo;
    }

    public void setDepNo(String depNo) {
        this.depNo = depNo;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Date getEstablishAt() {
        return establishAt;
    }

    public void setEstablishAt(Date establishAt) {
        this.establishAt = establishAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }
}